package com.pucong.gitee.database.backup.business.database.service;

import com.pucong.gitee.database.backup.common.entity.database.BackupSearchSqlInfo;
import com.pucong.gitee.database.backup.common.entity.database.dto.BackupSearchSqlInfoSaveDto;

import java.util.List;

public interface AutoSearchSqlInfoService {

    BackupSearchSqlInfo getSearchSqlInfoById(String id);

    /**
     * 保存、修改收藏信息
     * @param dto
     * @return
     */
    int saveInfo(BackupSearchSqlInfoSaveDto dto);

    /**
     * 查询list,本人收藏的sql
     * @return
     */
    List<BackupSearchSqlInfo> getSearchSqlInfoControllerList();
}
